import axios from "@/request/request.js";
import qs from "qs"

export const JinpinAPI = () => axios.get("/products/recommend")

export const RemenAPI = () => axios.get('/products/hot')

export const SendSMSAPI = (params) => axios.post("/sendSMS", qs.stringify(params))

export const PhoneReginAPI = (params) => axios.post("/phoneRegin", qs.stringify(params))

export const wechatLonginAPI = (params) => axios.post("/wechatUsers/PCLogin", qs.stringify(params))
// 
export const BindingAPI = (params) => axios.post('/wechatUsers/binding', qs.stringify(params))


export const UserAPI = () => axios.get('/shop/userProfiles')

export const DetailsAPI = (id) => axios.get(`/products/${id}`)

export const ShowCartsAPI = (params) => axios.post('/shop/carts/add', qs.stringify(params))

export const GoodsSeachAPI = (params) => axios.get('/products', { params })

export const CartsDetaAPI = () => axios.get('/shop/carts')